﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication3
{
    public partial class menuAdministrador : Form
    {
        public menuAdministrador()
        {
            InitializeComponent();
        }

        private void cerrarSesiónToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult boton = MessageBox.Show("¿Está seguro que desea cerrar su sesión?", "Advertencia", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
            if (boton == DialogResult.Yes)
            {
                this.Close();
                login log = new login();
                log.Show();

            }
            else
            {
            }//boton cancelar
            //regresar al winForm
        }

        private void nuevaVentaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Venta v = new Venta();
            v.MdiParent = this;
            v.Show();
        }

        private void multasToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            
        }

        private void multarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Amonestar a = new Amonestar();
            a.MdiParent = this;
            a.Show();
        }

        private void agregarToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Inventario i = new Inventario();
            i.MdiParent = this;
            i.Show();
        }

        private void generarOrdenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Comprar c = new Comprar();
            c.MdiParent = this;
            c.Show();
        }

        private void verMultasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            VerMulta v = new VerMulta();
            v.MdiParent = this;
            v.Show();
        }
    }
}
